package com.alexd.leetcode.core;

import java.util.ArrayList;
import java.util.List;

public class UndirectedGraphNode {
	public int label;
	public List<UndirectedGraphNode> neighbors;

	public UndirectedGraphNode(int x) {
		this.label = x;
		this.neighbors = new ArrayList<UndirectedGraphNode>();
	}

    public int getLabel() {
        return label;
    }

    public void setLabel(int label) {
        this.label = label;
    }

    public List<UndirectedGraphNode> getNeighbors() {
        return neighbors;
    }

    public void setNeighbors(List<UndirectedGraphNode> neighbors) {
        this.neighbors = neighbors;
    }
}
